package com.helloandroid.dialogs

import android.content.Context
import android.widget.TextView
import com.helloandroid.R
import com.helloandroid.base.BaseDialog

class LoadingDialog(ctx:Context,val descText:String,styleId:Int = R.style.TransparentDialog) : BaseDialog(ctx,styleId) {

    lateinit var tvDesc:TextView
    override fun getContentViewResId() = R.layout.dd_loading

    override fun initView() {

        // 调整对话框的透明度
        window?.let {
            it.attributes.alpha = 0.6f
        }

        tvDesc = findViewById(R.id.tvDesc)
        tvDesc.text = descText
    }

    override fun initData() {
    }
}